//
//  XFAlertView.h
//  UkongM_1.7
//
//  Created by ukongm on 17/6/15.
//  Copyright © 2017年 ukongm. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger , XFAlertViewShowType) {
    
    XFAlertViewShowTypeNormal = 0, //一个取消按钮
    XFAlertViewShowTypeAction, // 一个取消，一个确定

};

@interface XFAlertView : UIView


+ (instancetype)alertWithValue:(NSString*)value
                 fixedCompalte:(void(^)())fixedComplate
                          type:(XFAlertViewShowType)type;

+ (instancetype)alertWithValue:(NSString*)value
                         title:(NSString*)title
                 fixedCompalte:(void(^)())fixedComplate
                          type:(XFAlertViewShowType)type;

- (void)showInView:(UIView*)superView;
- (void)hide;


/** 取消标题 */
@property(nonatomic,strong)NSString* cannelTitle;
/** 确定标题 */
@property(nonatomic,strong)NSString* fixedTitle;
/** value是否居中（默认是） */
@property(nonatomic,assign)NSTextAlignment aligment;


@end
